package com.ling.pl.autoproject.definition.logic.model;

import com.ling.pl.core.commons.annotation.Dict;
import com.ling.pl.core.commons.annotation.ModelProperty;

import javax.persistence.Column;

/**
 * 实体属性规则
 */
public class CheckRule {
    @Column(name = "EXPAND_TYPE", length = 150)
    @ModelProperty(comment = "规则名称")
    String name;

    @Column(name = "EXPAND_TYPE", length = 150)
    @ModelProperty(comment = "规则类型")
    @Dict(code = "builder.checkRule.ruleType", des = "正则表达式")
    String type;

    @Column(name = "EXPAND_TYPE", length = 250)
    @ModelProperty(comment = "规则描述")
    String des;

    @Column(name = "EXPAND_TYPE", length = 250)
    @ModelProperty(comment = "规则值")
    String rule;
}
